package main

import "fmt"

func main() {
	slice := make([]int, 3)
	s := []int{1, 2, 3}
	b := s[:]

	slice[2] = 3
	fmt.Println(slice)
	fmt.Println(b)
	fmt.Println(cap(b))

	s = append(s, 4)
	fmt.Println(s)
	e := make([]int, 4)

	copy(e, s)
	fmt.Println(e)
}
